#ifndef CONTROLLER_H
#define CONTROLLER_H

#include <Arduino.h>
#include "api/api.h"
#include "error/error.h"
#include "page/page.h"
#include <WiFi.h>
#include <WiFiMulti.h>

#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */

class Controller
{
protected:
    Api::Weather apiWeather;
    Page::Weather pageWeather;
    Page::System pageSystem;
    Helper::Hardware hardwareHelper;
public:
    void connectWifi();
    void connectWifiMutiple();
    void setup();
    void loop();
    void sleep(int seconds);
};

#endif